//+---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation
//
// File: 
//      IDatabaseAccess.cs
//
// Contents: 
//      Asynchronous query interface to the FrontEnd Service Database
//
// Created by: 
//      Andrew Lin (yunlin@microsoft.com) Dec 11th, 2008
//
//----------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Reputation.Services
{
    public interface IDatabaseAccess
    {
        IAsyncResult BeginXmlQuery<TResult>(
            string storedProc,
            object inputXml,
            AsyncCallback callback,
            object state);

        TResult EndXmlQuery<TResult>(
            out long dbLatencyMilliSec,
            IAsyncResult ar);
    }
}
